package com.joshua.spring.integration.exception;

import lombok.Data;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.lang.Nullable;
import org.springframework.util.MultiValueMap;

/**
 * com.joshua.spring.business.integration.exception -- IntegrationHttpEntity
 * description:
 *
 * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @date 2020/1/13 17:20
 */
@Data
public class IntegrationResponseEntity<T> extends ResponseEntity<T> {
    private String code;

    public IntegrationResponseEntity(@Nullable T body, @Nullable MultiValueMap<String, String> headers, HttpStatus status, String code) {
        super(status);
        this.code = code;
    }
}
